package com.lipy.microweb.service.feign;

import com.lipy.microweb.bean.Student;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: lipy
 * @create: 2020-06-20 09:34
 **/
@Service
public class StudentServiceFallback implements StudentService {
    @Override
    public String getAllStudent() {
        return "获取所有学生信息失败";
    }

    @Override
    public String saveStudent(Student student) {
        return "保存学生信息失败";
    }

    @Override
    public String getStudentById(Integer id) {
        return "根据Id获取学生信息失败";
    }

    /*
     * 这种方式拿不到provider的具体异常信息
     * */
    @Override
    public String errorMessage(Integer id) {
        return "根据Id获取学生信息失败";
    }
}
